home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shw_fallfx.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  74 lines

  1. # Jones 3D Cog Script
  2. #
  3. # shw_river_thaw.cog
  4. #
  5. # River Thawing Script
  6. #
  7. # [CMG]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.         
  14.     #    MESSAGES
  15.     message    user0
  16.  
  17.     #    COGS
  18.     cog    icedamcog
  19.     
  20.     #    SOUND THINGS
  21.     thing    soundobj0
  22.     thing    soundobj1
  23.     thing    soundobj2
  24.     thing    soundobj3
  25.     thing    soundobj4
  26.     thing    soundobj5
  27.     thing    soundobj6
  28.     
  29.     #    VARIABLES
  30.     int        snd0        local
  31.     int        snd1        local
  32.     int        snd2        local
  33.     int        snd3        local
  34.     int        snd4        local
  35.     int        snd5        local
  36.     int        snd6        local
  37.  
  38.     #    SOUNDS
  39.     sound    fallloop=riv_h20_rapid_a.wav    local
  40.  
  41.     #    VECTORS
  42.     vector    down
  43.  
  44.     # SECTORS
  45.     sector    fall0
  46.     
  47. end
  48.  
  49. # ========================================================================================
  50.  
  51. code
  52. # ........................................................................................
  53.  
  54. user0:
  55.     If (GetSenderRef() == icedamcog)
  56.     {
  57.     snd0 = PlaySoundThing(fallloop, soundobj0, 0.25, 5, 15, 0x1);
  58.     snd1 = PlaySoundThing(fallloop, soundobj1, 0.25, 5, 15, 0x1);
  59.     snd2 = PlaySoundThing(fallloop, soundobj2, 0.5, 5, 20, 0x1);
  60.     snd3 = PlaySoundThing(fallloop, soundobj3, 0.5, 5, 20, 0x1);
  61.     snd4 = PlaySoundThing(fallloop, soundobj4, 0.75, 8, 30, 0x1);
  62.     snd5 = PlaySoundThing(fallloop, soundobj5, 1, 8, 30, 0x1);
  63.     snd6 = PlaySoundThing(fallloop, soundobj6, 1, 8, 30, 0x1);
  64.     
  65.     Setsectorthrust(fall0, down, 4);
  66.     }
  67.  
  68. return;        
  69.  
  70. # ........................................................................................
  71.  
  72. end
  73.  
  74.